<?php
$page_title="Manage Help Contents :  ";
include("includes/header.php");
$content_id=$_GET["c"];
if($content_id==1) $content=file_get_contents("../conf/content_tpl/help_newreg.html");
if($content_id==2) $content=file_get_contents("../conf/content_tpl/help_myprofile.html");
?>

<form method="post" action="quick_content_pro.php">
<br/>
<?if($content_id==1) { ?>
<div class="section_head">New Registration : </div><br/>
<div>
<textarea class="txtarea"  id="help_content_1" rows="14" cols="90" name="help_content_1" style="width:800px;height:300px;"><?=$content?></textarea>
</div>
<br/>
<? } ?>
<?if($content_id==2) { ?>
<div class="section_head">My Profile :</div><br/>
<div><textarea class="txtarea"  id="help_content_2" rows="14" cols="90" name="help_content_2" style="width:800px;height:300px;"><?=$content?></textarea>
</div>
<? } ?>
<div style="margin:10px;float:right">
<input type="submit" value="Save Content"  class="button"/>

</div>
</form>
<link rel="stylesheet" href="includes/wysiwyg.css" type="text/css">
<script type="text/javascript" src="includes/scripts/wysiwyg.js"></script>
<script type="text/javascript" src="includes/scripts/wysiwyg-settings.js"></script>
<!-- 
	Attach the editor on the textareas
-->
<script type="text/javascript">
	
	// Use it to attach the editor directly to a defined textarea
	<?if($content_id==1) { ?>WYSIWYG.attach('help_content_1'); // default setup
	<? } ?>
	<?if($content_id==2) { ?>
	WYSIWYG.attach('help_content_2'); // default setup
	<? } ?>
	
</script>

<?php
include("includes/footer.php");
?>
